package Month07.day11;

import java.util.ArrayList;

public class test2 {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();
        Student student = new Student("迪丽热巴",78);
        Student student1 = new Student("古力娜扎",78);
        Student student2 = new Student("马尔扎哈",78);
        list.add(student);
        list.add(student1);
        list.add(student2);
        for (int i = 0; i < list.size(); i++) {
           Student as= list.get(i);
            System.out.println(as);
        }
    }
}
